All Functions of Week 7

modelsummary

{modelsummary}

Creates regression and data tables

binomial

{base}

Family argument in glm()

group_by

{dplyr}

Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise

roc

{pRoc}

Create a Receiver Operating Characteristic (ROC) curve

list

{base}

Create a list object

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

seq

{base}

Create a sequence

filter

{dplyr}

Filter out rows of a data frame according to logical vector

par

{graphics}

Set parameters of the plotting device

as.numeric

{base}

Coerce a vector to numeric

glm

{base}

Fits generalized linear models

subset

{base}

Return subsets of vectors, matrices or data frames which meet conditions.

c

{base}

Combine values/vectors into a vector

grid.arrange

{gridExtra}

Places graphical objects into a rectangular grid

xlim

{ggplot2}

A shortcut to set the limits of the x-axis in a ggplot

predict

{stats}

Generate predicted values from model objects

tibble

{tibble}

A modern data frame from the tidyverse

scale_color_manual

{ggplot2}

Manually sets the colours used in a ggplot color scale to user-specified values

auc

{pRoc}

Returns the area under the curve

setwd

{base}

Set Working Directory

data.frame

{base}

Create a data.frame from vectors

plot

{graphics}

Generic function from base R to produce a plot

attr

{base}

Access or modify the attributes of an object

summary

{base}

Obtain summary statistics or detailed regression output

library

{base}

Load an R package

arrange

{dplyr}

Sort values of data frame according to a variable/combination of variables

lag

{dplyr}

Shift values in a vector or time series

pnorm

{base}

Returns the cumulative distribution function (CDF) of the normal distribution

mutate

{dplyr}

Create new variables

rbind

{base}

Combine R objects by rows

ungroup

{dplyr}

Resolve grouping created with “group_by”

unlist

{base}

Flattens a list into a vector by extracting all its elements

regTermTest

{regress}

Perform statistical tests for individual regression coefficients

group_tt

{tinytable}

Grouping in tinytable

The end!